import request from '@/utils/request'
import type { patientConsultOrderDetailApi } from '@/types/room'

// 订单详情
export const patientConsultOrderDetail = (orderId: string) => {
  return request<patientConsultOrderDetailApi>('/patient/consult/order/detail', 'get', { orderId })
}

// 查看处方
export const patientConsultPrescription = (id: string) => {
  return request<{ id: string; url: string }>(`/patient/consult/prescription/${id}`)
}
